package com.jymj.service.impl;

import com.jymj.dao.EnviorSupvsDao;
import com.jymj.dao.MlxcDao;
import com.jymj.entity.*;
import com.jymj.entity.landmanage.PointRecordEntity;
import com.jymj.entity.model.BplxEntity;
import com.jymj.entity.model.RjhjhpEntity;
import com.jymj.entity.model.RjdlEntity;
import com.jymj.entity.model.RjriverEntity;
import com.jymj.service.CJService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by ${lc} on 2020/9/4.
 */
@Service
public class CJServiceImpl implements CJService {
    @Resource
    private MlxcDao mlxcDao;
    @Autowired
    private EnviorSupvsDao enviorSupvsDao;

    @Override
    public CjEntity queryBypointAll(String point) {
        return mlxcDao.queryBypointAll(point);
    }

    @Override
    public FptbEntity queryFptb(String point) {
        return mlxcDao.queryFptb(point);
    }

    @Override
    public PyzlEntity queryPyzl(String point) {
        return mlxcDao.queryPyzl(point);
    }

    @Override
    public SsnyEntity querySsny(String point) {
        return mlxcDao.querySsny(point);
    }

    @Override
    public DlhlEntity queryDlhl(String point) {
        return mlxcDao.queryDlhl(point);
    }

    @Override
    public DlEntity queryDlBypoint(String point) {
        return mlxcDao.queryDlBypoint(point);
    }

    @Override
    public GfEntity queryGfBypoint(String point) {
        return mlxcDao.queryGfBypoint(point);
    }

    @Override
    public LhEntity queryLhBypoint(String point) {
        return mlxcDao.queryLhBypoint(point);
    }

    @Override
    public LhbwEntity queryLhbwBypoint(String point) {
        return mlxcDao.queryLhbwBypoint(point);
    }

    @Override
    public List<DlEntity> queryLhbw(String code, String jsnr, String xmmc, String year,String lx) {
        Map map = new HashMap();
        map.put("code",code);
        map.put("jsnr",jsnr);
        map.put("xmmc",xmmc);
        map.put("year",year);
        map.put("lx",lx);
        return mlxcDao.queryLhbwList(map);
    }

    @Override
    public List<DlEntity> queryLh(String code, String jsnr, String xmmc,String year,String lx) {
        Map map = new HashMap();
        map.put("code",code);
        map.put("jsnr",jsnr);
        map.put("xmmc",xmmc);
        map.put("year",year);
        map.put("lx",lx);
        return mlxcDao.queryLhList(map);
    }

    @Override
    public List<DlEntity> queryGf(String code, String jsnr, String xmmc,String year,String lx) {
        Map map = new HashMap();
        map.put("code",code);
        map.put("jsnr",jsnr);
        map.put("xmmc",xmmc);
        map.put("year",year);
        map.put("lx",lx);
        return mlxcDao.queryGfList(map);
    }

    @Override
    public List<DlEntity> queryDl(String code, String jsnr, String xmmc,String year,String lx) {
        Map map = new HashMap();
        map.put("code",code);
        map.put("jsnr",jsnr);
        map.put("xmmc",xmmc);
        map.put("year",year);
        map.put("lx",lx);
        return mlxcDao.queryDlList(map);
    }

    @Override
    public List<HjzzEntity> queryFptbGeom(String code, String type,String ghry) {
        return mlxcDao.queryFptbGeom(code,type,ghry);
    }

    @Override
    public List<HjzzEntity> queryPyzlGeom(String code, String type) {
        return mlxcDao.queryPyzlGeom(code,type);
    }

    @Override
    public List<HjzzEntity> querySsnyGeom(String code, String type) {
        return mlxcDao.querySsnyGeom(code,type);
    }

    @Override
    public List<HjzzEntity> queryDlhlGeom(String code, String type,String ghry) {
        return mlxcDao.queryDlhlGeom(code,type,ghry);
    }

    @Override
    public CjEntity queryCjByPoint(Map map) {
        return mlxcDao.queryCjByPoint(map);
    }

    @Override
    public RjhjhpEntity queryGxys(String point) {
        return mlxcDao.queryGxys(point);
    }

    @Override
    public RjdlEntity queryYDl(String point) {
        return mlxcDao.queryYDl(point);
    }

    @Override
    public List<BplxEntity> queryBplx(String code) {
        return mlxcDao.queryBplx(code);
    }

    @Override
    public List<RjhjhpEntity> queryAll(String code) {
        return mlxcDao.queryAll(code);
    }

    @Override
    public BplxEntity queryBjry(String code) {
        return mlxcDao.queryBjry(code);
    }

    @Override
    public void updateGxys(RjhjhpEntity gxys8Entity) {
        mlxcDao.updateGxys(gxys8Entity);
    }

    @Override
    public void updateBjry(BplxEntity bplxEntity) {
        mlxcDao.updateBjry(bplxEntity);
    }

    @Override
    public List<RjdlEntity> queryDlAll(String code) {
        return mlxcDao.queryDlAll(code);
    }

    @Override
    public void updateRjdl(RjdlEntity rjdlEntity) {
        mlxcDao.updateRjdl(rjdlEntity);
    }

    @Override
    public BplxEntity queryJxz(String code) {
        return mlxcDao.queryJxz(code);
    }

    @Override
    public void updateJxz(BplxEntity bplxEntity1) {
        mlxcDao.updateJxz(bplxEntity1);
    }

    @Override
    public List<String> queryBjryAll() {
        return mlxcDao.queryBjryAll();
    }

    @Override
    public RjriverEntity queryRiver(String point) {
        return mlxcDao.queryRiver(point);
    }

    @Override
    public RjhjhpEntity queryNyd(String point) {
        return mlxcDao.queryNyd(point);
    }

    @Override
    public RjhjhpEntity queryCzfw(String point) {
        return mlxcDao.queryCzfw(point);
    }

    @Override
    public PointRecordEntity queryByPoint(String point) {
        return enviorSupvsDao.queryByPoint(point);
    }

    @Override
    public  List<CjEntity> queryByName(String wz,Integer type) {
        return mlxcDao.queryByName(wz,type);
    }
}
